package com.anxin.act.file.web;

import com.anxin.act.file.dto.WfFileDTO;
import com.anxin.act.file.service.WfFileService;
import com.anxin.framework.aspectj.lang.annotation.Log;
import com.anxin.framework.aspectj.lang.enums.BusinessType;
import com.anxin.framework.web.entity.AjaxResult;
//import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//@Api(tags = "流程文档" )
@RestController
@RequestMapping("/wf/fileBase")
public class WfFileController {

    @Autowired
    private WfFileService wfFileService;

    /**
     * 流程文档
     * @return
     */
    @PreAuthorize("@ss.hasPermi('wf:file:view')")
    @GetMapping("/findWfFile")
    @Log(title = "流程文档", businessType = BusinessType.LIST)
    public AjaxResult findWfFile(WfFileDTO wfFileDTO){

        return wfFileService.findWfFile(wfFileDTO);
    }

}
